|
|
|
|
|
|
|
the F as the hotkey, but the Format menu has the o as the hotkey. If you used the F for both menu items, Windows wouldn't know which one you really wanted. The same letter can be used in items that appear in different groups, however, such as the File menu's Print option and the View menu's Page Layout option. For each group or level, you can have at most 36 hotkeys, one for each letter and one for each number. |
|
|
|
|
|
|
|
|
|
When you've included hotkeys in your menu, you can open a top-level menu simple by holding down the Alt key and then pressing the hotkey of choice. When the menu appears, you can then press the hotkey for the menu item that you wanted to execute. For example, if you want to start a new project in Visual Basic, you could press Alt+F and then N for the File menu's New Project option. |
|
|
|
|
|
|
|
|
Tip Whenever there's no conflict with letter selection, you should use the first letter of a menu item as the hotkey. This is what users expect, and it also makes it easy to guess what the hotkey is for a particular function. |
|
|
|
|
|
|
|
|
|
The other way to provide menu access is with shortcuts. Shortcut keys provide direct access to any function in a menu, no matter what level it's actually on. Shortcuts can be performed with a key combination (such as Ctrl+C for a copy function) or with a single key (such as Delete for the delete function). If you use the default shortcut keys (listed in Table 4.4), users will already know how to perform certain common tasks. |
|
|
|
|
| TABLE 4.4. STANDARD SHORTCUT KEYS USED BY WINDOWS APPLICATIONS. | | Menu Item | Shortcut Key | Description | | Edit, Cut | Ctrl+X | Removes text or a control and copies it to the Clipboard. | | Edit, Copy | Ctrl+C | Copies the text or control to the Clipboard. | | Edit, Paste | Ctrl+V | Pastes the contents of the Clipboard to the selected area. | | Edit, Undo | Ctrl+Z | Undoes the last change. | | Edit, Find | Ctrl+F | Finds a string. | | File, Open | Ctrl+O | Opens a file. | | File, Save | Ctrl+S | Saves the current file. | | File, Print | Ctrl+P | Prints the current data. |
|
|
|